import $http from "../http.js"
//查看用户的爱车
export const getMyLoveCar = (params) => $http("/user/mycar/select_mycar", { params, method: "get" })
//查看用户详情
export const getUserDetails = () => $http("/user/user-information/selectUerInformation", { method: "get" })
//查看用户地址
export const getAddressAll = () => $http("/user/address/select_by_userId", { method: "get" })
//新增用户地址
export const addUserAddress = (params) => $http("/user/address/add_address", { method: "post", data: { ...params } })
//删除用户的某一条地址
export const delUserAddress = (params) => $http("/user/address/delete_address", { method: "delete", data: { ...params } })
//根据地址ID获取完整地址详情
export const getAddressByID = (params) => $http("/user/address/selectByAddressId?addressId=" + params, { method: "get" })
//修改地址
export const updateAddress = (params) => $http("/user/address/update_address", { method: "put", data: { ...params } })
//修改个人信息
export const updateUserInfo = (params) => $http("/user/user-information/updateUserInformation", { method: "put", data: { ...params } })